package com.ss.android.article.browser.view.multiselect;

import android.app.Activity;
import android.support.v7.widget.RecyclerView.Adapter;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public final class c {
    static public final class a {
        @Nullable
        private Adapter a;
        private com.ss.android.article.browser.view.multiselect.viewholder.c b;
        private f c;
        private List d;
        private long e;
        private d f;

        public a(@NotNull Activity activity) {
            this.e = 300;
        }

        @NotNull
        public final com.ss.android.article.browser.view.multiselect.a a() {
            List v4;
            if (this.b == null) {
                this.b = new com.ss.android.article.browser.view.multiselect.viewholder.color.a((byte) 0);
            }

            if (this.d == null) {
                v4 = null;
            } else {
                List v0 = this.d;
                if (v0 == null) {
                    throw new RuntimeException("null cannot be cast to non-null type kotlin.collections.MutableList<in kotlin.Any>");
                } else {
                    v4 = this.d;
                }
            }

            Adapter v2 = this.a;
            if (v2 == null) {
                throw new NullPointerException();
            }

            f v3 = this.c;
            com.ss.android.article.browser.view.multiselect.viewholder.c v5 = this.b;
            if (v5 == null) {
                throw new NullPointerException();
            }

            long v6 = this.e;
            d v8 = this.f;
            if (v8 == null) {
                throw new NullPointerException();
            }
            return new com.ss.android.article.browser.view.multiselect.a(v2, v3, v4, v5, v6, v8);
        }

        @NotNull
        public final a a(@NotNull Adapter adapter) {
            this.a = adapter;
            return this;
        }

        @NotNull
        public final a a(@NotNull d itemClickListener) {
            this.f = itemClickListener;
            return this;
        }

        @NotNull
        public final a a(@NotNull f listener) {
            this.c = listener;
            return this;
        }

        @NotNull
        public final a a(@NotNull com.ss.android.article.browser.view.multiselect.viewholder.c decorateFactory) {
            this.b = decorateFactory;
            return this;
        }

        @NotNull
        public final a a(@NotNull List list) {
            this.d = list;
            return this;
        }
    }

    static {
        new c();
    }

    private c() {

    }

    @NotNull
    public static final a a(@NotNull Activity activity) {
        return new a(activity);
    }
}

